import BaseModel from "../baseModel.js";

class BreedModel extends BaseModel {
    /**
     * 
     * @param {BreedModel} model 
     */
    constructor(model) {
        super(model);
        /* 自定义属性以及重载 */
        this.breedName = BreedModel.CheackNull(model.breedName);
        this.appearance = model.appearance;
        this.breedCharacter = model.breedCharacter
        this.aggression = model.aggression
        this.habits = model.habits;
        this.diet = model.diet
        this.difficulty = model.difficulty
        this.origin = model.origin
        this.type = BreedModel.CheackBoolean(model.type); // 0:猫；1：狗
        this.introductionSrc = model.introductionSrc
    }
    static Instance = 'breed' // 表名
}
export default BreedModel;